package com.sun.eureka.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sun.eureka.api.hystric.CustomerServiceHystric;
import com.sun.eureka.config.LogConfiguration;
import com.sun.eureka.entry.Customer;

@FeignClient(value="micro-customer-server",fallback=CustomerServiceHystric.class,configuration=LogConfiguration.class)
public interface ICustomerService {
	
	@RequestMapping("customer/remoter/detail/{id}")
	Customer get(@PathVariable("id") Long id);
	
}
